{% extends 'base.html' %}
{% from 'macros.html' import form_field %}
{% block content %}

    <h1 align="center">登录</h1>
    <br>

    <form action="" method="post">
    {{ form.csrf_token }}

        <div class="form-control" align="center">

        <div class="form-group">
    {{ form_field(form.username) }}
  </div>
  <div class="form-group">
    {{ form_field(form.password) }}
  </div>
  <div class="form-check">
    {{ form_field(form.remember) }}
  </div>
        {{ form.submit(class='btn btn-primary') }}


</div>
    </form>

{% endblock %}